#!/bin/bash

# 检查是否传入了年份参数
if [ -z "$1" ]; then
  echo "Usage: $0 <year>"
  exit 1
fi

# 获取年份参数
year=$1

# 删除 .json.1.gz
ls -l /home/root/$year | grep .json.1.gz | sed 's/\.1\.gz/.gz/' | rm -rf

